package cn.liontalk.concurrent;

import cn.liontalk.concurrent.common.Punishment;
import cn.liontalk.concurrent.entity.StudentRunnable;
import cn.liontalk.concurrent.entity.StudentThread;

public class StudentRunnableClient {
    public static void main(String[] args) {
        Punishment punishment = new Punishment(10000, "internationalization");
        Thread  student = new Thread(new StudentRunnable("小明",punishment),"小明");
        student.start();

        Thread  student1 = new Thread(new StudentRunnable("小张",punishment),"小张");
        student1.start();

        Thread  student2 = new Thread(new StudentRunnable("小赵",punishment),"小赵");
        student2.start();
    }
}
